package psn.qiuyiping.autocad.dxffile;

@SubClassName("AcDbSymbolTableRecord")
public class DxfTableRecord extends DxfObject {
    String name;
    @DxfCode(70)
    int flag;

    public String getName() {
        return name;
    }

    public DxfTableRecord() {
        super();
        fields.putAll(redo(DxfTableRecord.class));
    }

    @DxfCode(2)
    public void readDxfRecordName(DxfProcessContext context, DxfData<String> item) {
        this.name = (String) item.getVal();
        context.getCurrentTable().addRecord(this);
    }
    
    public boolean isXrefDefined(){
        return (flag & 16) > 0;
    }
}
